package ce51.dunghn.chatslide;

import vg.com.chatonline.activity.R;
import android.os.Bundle;



public class LeftAndRightActivity extends BaseActivity {

	public LeftAndRightActivity() {
		super(R.string.left_and_right);
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getSlidingMenu().setMode(kds.slm.SlidingMenu.LEFT_RIGHT);
		getSlidingMenu().setTouchModeAbove(kds.slm.SlidingMenu.TOUCHMODE_FULLSCREEN);
		//Menu CHinh
		setContentView(R.layout.content_frame);
		getSupportFragmentManager()
		.beginTransaction()
		.replace(R.id.content_frame, new SampleFragment())
		.commit();
		
		
		//Menu Phai
		getSlidingMenu().setSecondaryMenu(R.layout.menu_frame_two);
		getSlidingMenu().setSecondaryShadowDrawable(R.drawable.shadowright);
		getSupportFragmentManager()
		.beginTransaction()
		.replace(R.id.menu_frame_two, new SampleFragmentRight())
		.commit();
	}

}
